<?php echo module_open();
$group = '';
for ($i = 0; $i < count($modules_groups); $i++)
{	
	if(is_array($tab_dashboard[$i]) && count($tab_dashboard[$i]))
	{
		$html[$i] = '';
		$n = 0;
		$html[$i] .= '<tr><td class="mod_cats fr">'.$modules_groups[$i]['name'].'</td></tr>';
		$html[$i] .= '<tr><td>';
		foreach ($tab_dashboard[$i] as $row)
		{
			if (check_rights($row['file']))
			{
				$num_new = $methods->get_new($row['file']);
				$html[$i] .= '<div class="div_admincats fr">';
				$html[$i] .= '<a class="loading" href="'.site_url($row['file']).'">';
				if ($num_new) $html[$i] .= '<span class="notification red" title="'.$num_new.' mới">'.$num_new.'</span>';
				$html[$i] .= '<img src="img/modules/'.$row['image'].'" />';
				$html[$i] .= '<br /><span class="name">'.$row['name_vn'].'</span>';
				$html[$i] .= '</a>';
				$html[$i] .= '</div>';
				$n++;
			}
		}
		$html[$i] .= '</td></tr>';
		if (!$n)
		{
			unset($html[$i]);
		}
		if (!empty($html[$i]))
		{
			$group .= $html[$i];
		}
	}
}
echo $group;
echo module_close();
?>